package com.psa.element;

import com.google.gson.Gson;

/**
 *
 * @author david
 * @date 2014-05-26
 */
public class ElementStatus implements IJson {
    public Object object = null;
    public boolean checked = false;
    public int index = 10000;

    @Override
    public String toString() {
        return object==null?super.toString():"["+(index+1) + "] " + object.toString();
    }

    @Override
    public String toJson() {
        return new Gson().toJson(this);
    }
}
